package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.CategoryDTO;
import com.leyou.item.entity.Category;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface CategoryService extends IService<Category> {
    //根据id查询id
    CategoryDTO findById(Long id);

    //根据id集合查询分类集合
    List<CategoryDTO> queryCategoryByIds(List<Long> ids);

    //根据父类目录id查询子分类
    List<CategoryDTO> queryCategoryByParentId(Long pid);

    //根据品牌id查询商品分类
    List<CategoryDTO> queryBrandById(Long id);
}
